<?php

namespace app\api\model;

use app\common\model\Api;

class Integral extends Api
{
    protected $autoWriteTimestamp = 'datetime';
    public function integraldetailed()
    {
        return $this->hasMany('integraldetailed');
    }
    public function order()
    {
        return $this->belongsTo('order');
    }
    
}
